import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        islogin: false,
        account: '',
        tableData: [
            {
                id:1,
                orderNumber:'OR0001',
                orderQuantity:'30',
                orderAmount:'100',
                orderDate:'20200318',
                remarks:''
            },
            {
                id:2,
                orderNumber:'OR0002',
                orderQuantity:'100',
                orderAmount:'1,200',
                orderDate:'20200318',
                remarks:''
            },
            {
                id:3,
                orderNumber:'OR0003',
                orderQuantity:'1,152',
                orderAmount:'300',
                orderDate:'20200318',
                remarks:'紧急'
            },
            {
                id:4,
                orderNumber:'OR0004',
                orderQuantity:'65',
                orderAmount:'5,000',
                orderDate:'20200318',
                remarks:'特急'
            },
            {
                id:5,
                orderNumber:'OR0005',
                orderQuantity:'65',
                orderAmount:'5,432',
                orderDate:'20200318',
                remarks:''
            }
        ]
    },
    mutations: {
        SET_ACCOUNT(state, account) {
            state.account = account
        }

    }
})

export default store
